package cn.bs.busuo.mall.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Order implements Serializable {
    private Long id;
    private Long buyerId;
    private String buyer_username;
    private Long receiver_address_id;
    private Integer goods_num;
    private BigDecimal total_price;
    private Integer order_state;
    private LocalDateTime gmt_pay;
    private Integer is_display;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("数据创建时间")
    private LocalDateTime gmtCreate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("数据最后修改时间")
    private LocalDateTime gmtModified;
}
